class WaitingListEntity {
  List<LeftValue>? data;

  WaitingListEntity({this.data});

  factory WaitingListEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['data'] as List?;
    List<LeftValue> protocolList =
        (originList??[]).map((value) => LeftValue.fromJson(value)).toList();
    return WaitingListEntity(
      data: protocolList,
    );
  }
}

class LeftValue {
  String? moduleName;
  String? functionName;
  int? bizFunction;
  int? bizModule;
  int? unRead;
  bool? isSelected;

  int? customerId;
  int? overdueCount;
  int? undoCount;
  String? elderName;

  LeftValue({
    this.bizModule,
    this.moduleName,
    this.isSelected,
    this.unRead,
    this.customerId,
    this.elderName,
    this.overdueCount,
    this.undoCount,
    this.functionName,
    this.bizFunction,
  });

  LeftValue.fromJson(Map data) {
    bizModule = data['bizModule'];
    moduleName = data['moduleName'];
    unRead = data['unRead'];
    isSelected = data['isSelected'] = false;
    functionName = data['functionName'];
    bizFunction = data['bizFunction'];
    customerId = data['customerId'];
    elderName = data['elderName'];
    overdueCount = data['overdueCount'];
    undoCount = data['undoCount'];
  }
}
